<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="../../../common/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<sfa:mainTitle>筹备期考核预警查询</sfa:mainTitle>
		<%@ include file="../../../common/meta.jsp"%>
		<script type="text/javascript">
function doQuery() {
	document.form1.action = "${path}/team/assess/index/prepareQuery?dotype=doquery";
	document.form1.submit();
}
$(function() {
	fixTable.FixTable("mytable");
	$("#fullScreen").click(function() {
		fullScreen.FullScreen("mylist");
	});
	$("#dcpdf").click(function() {
		document.form1.action = "${path}/team/assess/index/prepareQuery?optype=pdf";
		document.form1.submit();
	});
	$("#dcexcel").click(function() {
		document.form1.action = "${path}/team/assess/index/prepareQuery?optype=excel";
		document.form1.submit();
	});
})
</script>
	</head>
	<body id="master">
		<sfa:mainHeader></sfa:mainHeader>
		<form action="" name="form1" method="post">

			<div class="webpart3 contentarea">
				<div class="webpart-head">
					<div class="webpart-head-item">
						筹备期考核预警查询
						<div class="tools-btn" style="width: 250px;">
							<a href="javascript:" id="dcexcel"><span> <img
										src="${path}/statics/images/dcexcel.gif"
										style="margin-right: 4px; margin-bottom: -3px;" />导出EXCEL</span> </a>
							<a href="javascript:" id="fullScreen"><span> <img
										src="${path}/statics/images/qp.gif"
										style="margin-right: 4px; margin-bottom: -3px;" />全屏</span> </a>
										
						</div>
					</div>
				</div>
				<div class="webpart-main" id="maindiv">
					<div class="webpart-main-item" style="padding-top: 12px;">
						<div class="search">
							<table width="100%" border="0" cellspacing="0" cellpadding="10"
								class="table_form">

								<tr>
									<th align="right">
										姓名:
									</th>
									<td>
										<input id="agentname" name="agentname" maxlength="64"
											type="text" value="${agentname}" class="input-txt" />
									</td>
									<th align="right">
										销售代码:
									</th>
									<td>
										<input id="agentcode" name="agentcode" maxlength="16"
											type="text" value="${agentcode}" class="input-txt" />
									</td>
									<th>
										&nbsp;证件号码:
									</th>
									<td>
										<input id="idno" name="idno" maxlength="32" type="text"
											value="${idno}" class="input-txt" />
									</td>
								</tr>
								<tr>
									<th>
										职级:
									</th>
									<td align="left">
										<select name="agentlevelcode" id="agentlevelcode" style="width: 120px"
											class="savehistory">
											<option value="ALL">
												未选择
											</option>
											<option value="SL" ${agentlevelcode=='SL'?'selected':''}>
												SL-行销主任
											</option>
											<option value="SM" ${agentlevelcode=='SM'?'selected':''}>
												SM-行销经理
											</option>
											<option value="SD" ${agentlevelcode=='SD'?'selected':''}>
												SD-行销总监
											</option>
											<option value="NAC1" ${agentlevelcode=='NAC1'?'selected':''}>
												NAC1-理财顾问
											</option>
											<option value="NAC2" ${agentlevelcode=='NAC2'?'selected':''}>
												NAC2-资深顾问
											</option>
											<option value="AM" ${agentlevelcode=='AM'?'selected':''}>
												AM-业务经理
											</option>
											<option value="UM" ${agentlevelcode=='UM'?'selected':''}>
												UM-高级经理
											</option>
											<option value="OM1" ${agentlevelcode=='OM1'?'selected':''}>
												OM1-业务总监
											</option>
											<option value="OM2" ${agentlevelcode=='OM2'?'selected':''}>
												OM2-区域总监
											</option>
										</select>
									</td>
									<th>
										在职状态:
									</th>
									<td>
										<select name="agentstatus" style="width: 120px"
											id="agentstatus" class="savehistory">
											<option value="">
												－－请选择：－－
											</option>
											<option value="AGENTSTATUS_10">
												解约
											</option>
											<option value="AGENTSTATUS_08">
												待审核
											</option>
											<option value="AGENTSTATUS_09">
												签约
											</option>
										</select>
									</td>
									<th align="right">
										考核结果：
									</th>
									<td>
										<sfa:dic showType="select" kindNo="ASSESSRESULT"
											def="ALL:－－请选择：－－;" attr="style='width:120px'"
											name="assessresult" id="assessresult" code="${assessresult}">
										</sfa:dic>
									</td>
								</tr>
								<tr>
									<th align="right">
										<span style="color: red;">*</span>考核年月：
									</th>
									<td>
										<input type="text" readonly="readonly" id="yearmonth"
											class="input-txt" style="width: 120px" name="yearmonth"
											value="${yearmonth}"
											onclick="WdatePicker({dateFmt:'yyyy年MM月',realDateFmt:'yyyyMM',vel:'endyearmonth'})" />
									</td>
									<th align="right" colspan="4">
										<input name="Input" type="button" class="linkbtn2"
											value="查  询" onclick="doQuery()" />
									</th>
								</tr>
							</table>
						</div>

						<!-- 查詢列表 -->
						<div id="mylist" style="height: 365px;" class="dlist">
							<table id="mytable" cellpadding="0" cellspacing="0"
								class="dg_borderstyle  trStyleTable"
								style="margin-top: 0px; text-align: center;">
								<tr>
									<th nowrap="nowrap">
										<h3>
											序号
										</h3>
									</th>
									<th nowrap="nowrap">
										<h3>
											计算时间
										</h3>
									</th>
									<th nowrap="nowrap">
										<h3>
											销售代码
										</h3>
									</th>
									<th nowrap="nowrap">
										<h3>
											姓名
										</h3>
									</th>
									<th nowrap="nowrap">
										<h3>
											证件号码
										</h3>
									</th>
									<th nowrap="nowrap">
										<h3>
											考核年月
										</h3>
									</th>
									<th nowrap="nowrap">
										<h3>
											考核类型
										</h3>
									</th>
									<th nowrap="nowrap">
										<h3>
											分公司
										</h3>
									</th>
									<th nowrap="nowrap">
										<h3>
											督导区
										</h3>
									</th>
									<th nowrap="nowrap">
										<h3>
											营业部
										</h3>
									</th>
									<th nowrap="nowrap">
										<h3>
											职级
										</h3>
									</th>
									<th nowrap="nowrap">
										<h3>
											新职级
										</h3>
									</th>
									<th nowrap="nowrap">
										<h3>
											考核结果
										</h3>
									</th>
									<th nowrap="nowrap">
										<h3>
											团队人力
										</h3>
									</th>
									<th nowrap="nowrap">
										<h3>
											团队人力差距
										</h3>
									</th>
									<th nowrap="nowrap">
										<h3>
											个人累计实收新单FYB业绩
										</h3>
									</th>
									<th nowrap="nowrap">
										<h3>
											个人累计实收新单FYB差距
										</h3>
									</th>
									<th nowrap="nowrap">
										<h3>
											个人寿险新单件数业绩
										</h3>
									</th>
									<th nowrap="nowrap">
										<h3>
											个人寿险新单件数差距
										</h3>
									</th>
									<th nowrap="nowrap">
										<h3>
											个人寿险新单价值保费业绩
										</h3>
									</th>
									<th nowrap="nowrap">
										<h3>
											个人寿险新单价值保费差距
										</h3>
									</th>
									<th nowrap="nowrap">
										<h3>
											个人累计寿险FYC业绩
										</h3>
									</th>
									<th nowrap="nowrap">
										<h3>
											个人累计寿险FYC差距
										</h3>
									</th>
									<th nowrap="nowrap">
										<h3>
											直辖组人力
										</h3>
									</th>
									<th nowrap="nowrap">
										<h3>
											直辖组人力差距
										</h3>
									</th>
									<th nowrap="nowrap">
										<h3>
											营业处人力
										</h3>
									</th>
									<th nowrap="nowrap">
										<h3>
											营业处个数差距
										</h3>
									</th>
									<th nowrap="nowrap">
										<h3>
											直接育成OM1人数
										</h3>
									</th>
									<th nowrap="nowrap">
										<h3>
											直接育成OM1人数差距
										</h3>
									</th>
									<th nowrap="nowrap">
										<h3>
											直接育成UM人数
										</h3>
									</th>
									<th nowrap="nowrap">
										<h3>
											直接育成UM人数差距
										</h3>
									</th>
									<th nowrap="nowrap">
										<h3>
											直接育成AM人数
										</h3>
									</th>
									<th nowrap="nowrap">
										<h3>
											直接育成AM人数差距
										</h3>
									</th>
									<th nowrap="nowrap">
										<h3>
											直接推荐顾问人数
										</h3>
									</th>
									<th nowrap="nowrap">
										<h3>
											直接推荐顾问人数差距
										</h3>
									</th>
									<th nowrap="nowrap">
										<h3>
											个人累计承保FYC业绩
										</h3>
									</th>
									<th nowrap="nowrap">
										<h3>
											个人累计承保FYC差距
										</h3>
									</th>
									<th nowrap="nowrap">
										<h3>
											是否持证
										</h3>
									</th>
									<th nowrap="nowrap">
										<h3>
											需要持证
										</h3>
									</th>
									<th nowrap="nowrap">
										<h3>
											团队累计寿险价值保费业绩
										</h3>
									</th>
									<th nowrap="nowrap">
										<h3>
											团队累计寿险价值保费差距
										</h3>
									</th>
									<th nowrap="nowrap">
										<h3>
											直辖组累计承保FYC业绩
										</h3>
									</th>
									<th nowrap="nowrap">
										<h3>
											直辖组累计承保FYC差距
										</h3>
									</th>
									<th nowrap="nowrap">
										<h3>
											直辖部累计承保FYC业绩
										</h3>
									</th>
									<th nowrap="nowrap">
										<h3>
											直辖部累计承保FYC差距
										</h3>
									</th>
									<th nowrap="nowrap">
										<h3>
											直辖处累计承保FYC业绩
										</h3>
									</th>
									<th nowrap="nowrap">
										<h3>
											直辖处累计承保FYC差距
										</h3>
									</th>
									<th nowrap="nowrap">
										<h3>
											直辖区累计承保FYC业绩
										</h3>
									</th>
									<th nowrap="nowrap">
										<h3>
											直辖区累计承保FYC差距
										</h3>
									</th>
									<th nowrap="nowrap">
										<h3>
											本人及所推荐的顾问（含间接育成）累计承保FYC业绩
										</h3>
									</th>
									<th nowrap="nowrap">
										<h3>
											本人及所推荐的顾问（含间接育成）累计承保FYC差距
										</h3>
									</th>
									<th nowrap="nowrap">
										<h3>
											本人直辖组及其育成业务经理直辖组（含间接育成）累计承保FYC业绩
										</h3>
									</th>
									<th nowrap="nowrap">
										<h3>
											本人直辖组及其育成业务经理直辖组（含间接育成）累计承保FYC差距
										</h3>
									</th>
									<th nowrap="nowrap">
										<h3>
											本人直辖部及其育成高级经理直辖部（含间接育成）累计承保FYC业绩
										</h3>
									</th>
									<th nowrap="nowrap">
										<h3>
											本人直辖部及其育成高级经理直辖部（含间接育成）累计承保FYC差距
										</h3>
									</th>
									<th nowrap="nowrap">
										<h3>
											本人直辖处及其育成业务总监直辖处（含间接育成）累计承保FYC业绩
										</h3>
									</th>
									<th nowrap="nowrap">
										<h3>
											本人直辖处及其育成业务总监直辖处（含间接育成）累计承保FYC差距
										</h3>
									</th>
								</tr>
								<c:forEach items="${pagination}" var="list" varStatus="var">
									<tr>
										<td nowrap="nowrap">
											${var.index+1}
										</td>
										<td nowrap="nowrap">
											${list.CREATEDATE}
										</td>
										<td nowrap="nowrap">
											${list.AGENTCODE}
										</td>
										<td nowrap="nowrap">
											${list.AGENTNAME}
										</td>
										<td nowrap="nowrap">
											${list.IDNO}
										</td>
										<td nowrap="nowrap">
											${list.YEARMONTH}
										</td>
										<td nowrap="nowrap">
											${list.ASSESSTYPENAME}
										</td>
										<td nowrap="nowrap">
											${list.BRANCHNAME}
										</td>
										<td nowrap="nowrap">
											${list.CBRANCHNAME}
										</td>
										<td nowrap="nowrap">
											${list.UBRANCHNAME}
										</td>
										<td nowrap="nowrap">
											${list.AGENTLEVELCODE}
										</td>
										<td nowrap="nowrap">
											${list.NEWLEVELNAME}
										</td>
										<td nowrap="nowrap">
											${list.ASSESSRESULTNAME}
										</td>
										<td nowrap="nowrap">
											<span style='color:${list.SCORE_01-list.ITEMSSCORE_01>=0?'green' : 'red'}' >${list.SCORE_01}</span>
										</td>
										<td nowrap="nowrap">
											<span style='color: blue;'>${list.ITEMSSCORE_01>list.SCORE_01?list.ITEMSSCORE_01-list.SCORE_01:list.SCORE_01}</span>
										</td>
										<td nowrap="nowrap">
											<span style='color:${list.SCORE_02>=list.ITEMSSCORE_02?'green' : 'red'}' >${list.SCORE_02}</span>
										</td>
										<td nowrap="nowrap">
											<span style='color: blue;'>${list.ITEMSSCORE_02>list.SCORE_02?list.ITEMSSCORE_02-list.SCORE_02:list.SCORE_02}</span>
										</td>
										<td nowrap="nowrap">
											<span style='color:${list.SCORE_03>=list.ITEMSSCORE_03?'green' : 'red'}' >${list.SCORE_03}</span>
										</td>
										<td nowrap="nowrap">
											<span style='color: blue;'>${list.ITEMSSCORE_03>list.SCORE_03?list.ITEMSSCORE_03-list.SCORE_03:list.SCORE_03}</span>
										</td>
										<td nowrap="nowrap">
											<span style='color:${list.SCORE_04>=list.ITEMSSCORE_04?'green' : 'red'}' >${list.SCORE_04}</span>
										</td>
										<td nowrap="nowrap">
											<span style='color: blue;'>${list.ITEMSSCORE_04>list.SCORE_04?list.ITEMSSCORE_04-list.SCORE_04:list.SCORE_04}</span>
										</td>
										<td nowrap="nowrap">
											<span style='color:${list.SCORE_08>=list.ITEMSSCORE_08?'green' : 'red'}' >${list.SCORE_08}</span>
										</td>
										<td nowrap="nowrap">
											<span style='color: blue;'>${list.ITEMSSCORE_08>list.SCORE_08?list.ITEMSSCORE_08-list.SCORE_08:list.SCORE_08}</span>
										</td>
										<td nowrap="nowrap">
											<span style='color:${list.SCORE_10>=list.ITEMSSCORE_10?'green' : 'red'}' >${list.SCORE_10}</span>
										</td>
										<td nowrap="nowrap">
											<span style='color: blue;'>${list.ITEMSSCORE_10>list.SCORE_10?list.ITEMSSCORE_10-list.SCORE_10:list.SCORE_10}</span>
										</td>
										<td nowrap="nowrap">
											<span style='color:${list.SCORE_11>=list.ITEMSSCORE_11?'green' : 'red'}' >${list.SCORE_11}</span>
										</td>
										<td nowrap="nowrap">
											<span style='color: blue;'>${list.ITEMSSCORE_11>list.SCORE_11?list.ITEMSSCORE_11-list.SCORE_11:list.SCORE_11}</span>
										</td>
										<td nowrap="nowrap">
											<span style='color:${list.SCORE_12>=list.ITEMSSCORE_12?'green' : 'red'}' >${list.SCORE_12}</span>
										</td>
										<td nowrap="nowrap">
											<span style='color: blue;'>${list.ITEMSSCORE_12>list.SCORE_12?list.ITEMSSCORE_12-list.SCORE_12:list.SCORE_12}</span>
										</td>
										<td nowrap="nowrap">
											<span style='color:${list.SCORE_13>=list.ITEMSSCORE_13?'green' : 'red'}' >${list.SCORE_13}</span>
										</td>
										<td nowrap="nowrap">
											<span style='color: blue;'>${list.ITEMSSCORE_13>list.SCORE_13?list.ITEMSSCORE_13-list.SCORE_13:list.SCORE_13}</span>
										</td>
										<td nowrap="nowrap">
											<span style='color:${list.SCORE_14>=list.ITEMSSCORE_14?'green' : 'red'}' >${list.SCORE_14}</span>
										</td>
										<td nowrap="nowrap">
											<span style='color: blue;'>${list.ITEMSSCORE_14>list.SCORE_14?list.ITEMSSCORE_14-list.SCORE_14:list.SCORE_14}</span>
										</td>
										<td nowrap="nowrap">
											<span style='color:${list.SCORE_15>=list.ITEMSSCORE_15?'green' : 'red'}' >${list.SCORE_15}</span>
										</td>
										<td nowrap="nowrap">
											<span style='color: blue;'>${list.ITEMSSCORE_15>list.SCORE_15?list.ITEMSSCORE_15-list.SCORE_15:list.SCORE_15}</span>
										</td>
										<td nowrap="nowrap">
											<span style='color:${list.SCORE_19>=list.ITEMSSCORE_19?'green' : 'red'}' >${list.SCORE_19}</span>
										</td>
										<td nowrap="nowrap">
											<span style='color: blue;'>${list.ITEMSSCORE_19>list.SCORE_19?list.ITEMSSCORE_19-list.SCORE_19:list.SCORE_19}</span>
										</td>
										<td nowrap="nowrap">
											<span style="color:${list.SCORE_20=='HKBOOLEAN_0'?'green' : 'red'}" >${list.SCORE_20=='HKBOOLEAN_1'?'是'
												: '否'}</span>
										</td>
										<td nowrap="nowrap">
											<span style='color: blue;'>${list.ITEMSSCORE_20=='HKBOOLEAN_1'?'是'
												: '否'}</span>
										</td>
										<td nowrap="nowrap">
											<span style='color:${list.SCORE_05>=list.ITEMSSCORE_05?'green' : 'red'}' >${list.SCORE_05}</span>
										</td>
										<td nowrap="nowrap">
											<span style='color: blue;'>${list.ITEMSSCORE_05>list.SCORE_05?list.ITEMSSCORE_05-list.SCORE_05:list.SCORE_05}</span>
										</td>
										<td nowrap="nowrap">
											<span style='color:${list.SCORE_25>=list.ITEMSSCORE_25?'green' : 'red'}' >${list.SCORE_25}</span>
										</td>
										<td nowrap="nowrap">
											<span style='color: blue;'>${list.ITEMSSCORE_25>list.SCORE_25?list.ITEMSSCORE_25-list.SCORE_25:list.SCORE_25}</span>
										</td>
										<td nowrap="nowrap">
											<span style='color:${list.SCORE_26>=list.ITEMSSCORE_26?'green' : 'red'}' >${list.SCORE_26}</span>
										</td>
										<td nowrap="nowrap">
											<span style='color: blue;'>${list.ITEMSSCORE_26>list.SCORE_26?list.ITEMSSCORE_26-list.SCORE_26:list.SCORE_26}</span>
										</td>
										<td nowrap="nowrap">
											<span style='color:${list.SCORE_27>=list.ITEMSSCORE_27?'green' : 'red'}' >${list.SCORE_27}</span>
										</td>
										<td nowrap="nowrap">
											<span style='color: blue;'>${list.ITEMSSCORE_27>list.SCORE_27?list.ITEMSSCORE_27-list.SCORE_27:list.SCORE_27}</span>
										</td>
										<td nowrap="nowrap">
											<span style='color:${list.SCORE_28>=list.ITEMSSCORE_28?'green' : 'red'}' >${list.SCORE_28}</span>
										</td>
										<td nowrap="nowrap">
											<span style='color: blue;'>${list.ITEMSSCORE_28>list.SCORE_28?list.ITEMSSCORE_28-list.SCORE_28:list.SCORE_28}</span>
										</td>
										<td nowrap="nowrap">
											<span style='color:${list.SCORE_29>=list.ITEMSSCORE_29?'green' : 'red'}' >${list.SCORE_29}</span>
										</td>
										<td nowrap="nowrap">
											<span style='color: blue;'>${list.ITEMSSCORE_29>list.SCORE_29?list.ITEMSSCORE_29-list.SCORE_29:list.SCORE_29}</span>
										</td>
										<td nowrap="nowrap">
											<span style='color:${list.SCORE_30>=list.ITEMSSCORE_30?'green' : 'red'}' >${list.SCORE_30}</span>
										</td>
										<td nowrap="nowrap">
											<span style='color: blue;'>${list.ITEMSSCORE_30>list.SCORE_30?list.ITEMSSCORE_30-list.SCORE_30:list.SCORE_30}</span>
										</td>
										<td nowrap="nowrap">
											<span style='color:${list.SCORE_31>=list.ITEMSSCORE_31?'green' : 'red'}' >${list.SCORE_31}</span>
										</td>
										<td nowrap="nowrap">
											<span style='color: blue;'>${list.ITEMSSCORE_31>list.SCORE_31?list.ITEMSSCORE_31-list.SCORE_31:list.SCORE_31}</span>
										</td>
										<td nowrap="nowrap">
											<span style='color:${list.SCORE_32>=list.ITEMSSCORE_32?'green' : 'red'}' >${list.SCORE_32}</span>
										</td>
										<td nowrap="nowrap">
											<span style='color: blue;'>${list.ITEMSSCORE_32>list.SCORE_32?list.ITEMSSCORE_32-list.SCORE_32:list.SCORE_32}</span>
										</td>
									</tr>
								</c:forEach>
							</table>
						</div>
					</div>
				</div>
				<div class="webpart-foot">
					<div class="webpart-foot-item">
					</div>
				</div>
			</div>
		</form>
		<sfa:mainFooter></sfa:mainFooter>
	</body>
</html>
